<div class="field-label inline" th:text="#{${field.friendlyName}}" th:classappend="${field.required ? 'required' : ''}" />
<div th:substituteby="components/fieldTooltip" />
<span class="error" th:errors="*{fields['__${field.name}__'].value}" />

<select class="six" th:field="*{fields['__${field.name}__'].value}" 
        th:if="${!#maps.isEmpty(field.options) and #maps.size(field.options) ge #props.getAsInt('admin.enum.minCountForDropDown')}">
    <option value="" th:text="#{Default_Select}" />
    <option th:each="entry : *{fields['__${field.name}__'].options}"
            th:value="${entry.key}"
            th:text="${entry.value}" />
</select>

<div th:if="${!#maps.isEmpty(field.options) and #maps.size(field.options) lt #props.getAsInt('admin.enum.minCountForDropDown')}"
     class="small-enum-container">
    <div th:each="entry : *{fields['__${field.name}__'].options}">
        <label th:inline="text" class="inline-radio-label">
            <input th:field="*{fields['__${field.name}__'].value}"
                   type="radio"
                   th:value="${entry.key}" />
            [[${entry.value}]]
        </label>
    </div>
</div>
            
<span th:if="${#maps.isEmpty(field.options)}" class="indented-form-value" th:inline="text">
    &lt;[[#{No_Records_Found_Enum}]]&gt;
</span>